package Mangos::DB::Mangos::NpcTrainer;

use strict;

use base qw(Mangos::DB::Mangos);

__PACKAGE__->meta->setup
(
    table   => 'npc_trainer',

    columns => 
    [
        entry         => { type => 'integer', not_null => 1 },
        spell         => { type => 'integer', not_null => 1 },
        spellcost     => { type => 'integer', default => '0', not_null => 1 },
        reqskill      => { type => 'integer', default => '0', not_null => 1 },
        reqskillvalue => { type => 'integer', default => '0', not_null => 1 },
        reqlevel      => { type => 'integer', default => '0', not_null => 1 },
    ],

    primary_key_columns => [ 'entry', 'spell' ],
);

1;

package Mangos::DB::Mangos::NpcTrainer::Manager;

use strict;
use warnings;

use base 'Rose::DB::Object::Manager';

sub object_class { 'Mangos::DB::Mangos::NpcTrainer' }

__PACKAGE__->make_manager_methods('npc_trainer');

1;
